<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<TITLE>尚学堂学员论坛--发布帖子</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<Link rel="stylesheet" type="text/css" href="style/style.css" />
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript">
	function check() {
		if (document.postForm.title.value == "") {
			alert("标题不能为空");
			return false;
		}
		if (document.getElementById("centent").value == "") {
			alert("内容不能为空");
			return false;
		}
		if (document.getElementById("centent").length > 1000) {
			alert("长度不能大于1000");
			return false;
		}
	}
</script>
</HEAD>
<c:if test="${empty sessionScope.uname }">
	<c:redirect url="login.jsp">
		<c:param name="error" value="postnologin"></c:param>
	</c:redirect>
</c:if>
<BODY>
	<%@include file="_head.jsp"%>
	<!--      主体        -->
	<DIV>
		<BR />
		<!--      导航        -->
		<DIV>
			&gt;&gt;<B><a href="index">论坛首页</a></B>&gt;&gt; <B><a href="list">${param.cboname }</a></B>
		</DIV>
		<BR />
		<DIV>
			<FORM name="postForm" onsubmit="return check()" action="post"
				method="POST">
				<input type="hidden" name="cboid" value="${param.cboid }">
				<DIV class="t">
					<TABLE cellSpacing="0" cellPadding="0" align="center">
						<TR>
							<TD class="h" colSpan="3"><B>发表帖子</B></TD>
						</TR>

						<TR class="tr3">
							<TH width="20%"><B>标题</B></TH>
							<TH><INPUT class="input"
								style="PADDING-LEFT: 2px; FONT: 14px Tahoma" tabIndex="1"
								size="60" name="title"></TH>
						</TR>

						<TR class="tr3">
							<TH vAlign=top>
								<DIV>
									<B>内容</B>
								</DIV>
							</TH>
							<TH colSpan=2>
								<DIV>
									<span><textarea id = "content" style="WIDTH: 500px;" rows="20" cols="90" tabIndex="2" class="ckeditor"
											name="content"></textarea></span>
								</DIV> (不能大于:<FONT color="blue">1000</FONT>字)
							</TH>
						</TR>
					</TABLE>
				</DIV>

				<DIV style="MARGIN: 15px 0px; TEXT-ALIGN: center">
					<INPUT class="btn" tabIndex="3" type="submit" value="提 交">
					<INPUT class="btn" tabIndex="4" type="reset" value="重 置">
				</DIV>
			</FORM>
		</DIV>
	</DIV>
	<!--      声明        -->
	<BR />
	<CENTER class="gray">版权所有 2005-2011 北京尚学堂科技有限公司</CENTER>

</BODY>
</HTML>